/**
 * 
 */
package ltu.m7011e.server.response.link;

import java.util.ArrayList;

import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;

/**
 * @author robinelmouahidine
 *
 */
@XmlType(name = "", propOrder = {
		"name",
		"status",
		"arrayLink"
})
public class GetLinksAction {
	
	/**
	 * Action type ex: newest or category name
	 */
	@XmlAttribute(name="name")
	public String name = "default";
	
	
	/**
	 * Response Status
	 */
	@XmlElement(name="respstatus")
	public Integer status;
	
	@XmlElement(name="link")
	public ArrayList<LinkResponse> arrayLink;
	
	/**
	 * Default constuctor
	 */
	public GetLinksAction () {
		arrayLink = new ArrayList<LinkResponse>();
	}
	
	/**
	 * Default constuctor
	 */
	public GetLinksAction (String actionName) {
		arrayLink = new ArrayList<LinkResponse>();
		name = actionName;
	}

}
